{extend name="Index/index" /}

    {block name="css"}

    <!-- Bootstrap Core CSS -->
    {load href="__static__/admin/vendor/bootstrap/css/bootstrap.min.css" /}

    <!-- MetisMenu CSS -->
    {load href="__static__/admin/vendor/metisMenu/metisMenu.min.css" /}

    <!-- DataTables CSS -->
    {load href="__static__/admin/vendor/datatables-plugins/dataTables.bootstrap.css" /}

    <!-- DataTables Responsive CSS -->
    {load href="__static__/admin/vendor/datatables-responsive/dataTables.responsive.css" /}

    <!-- Custom CSS -->
    {load href="__static__/admin/dist/css/sb-admin-2.css" /}

    <!-- Custom Fonts -->
    {load href="__static__/admin/vendor/font-awesome/css/font-awesome.min.css" /}

    <!-- my.user -->
    {load href="__static__/admin/css/user.css" /}

    <!-- datetime -->
    {load href="__static__/admin/css/datetime.css" /}

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" /}
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" /}
    <![endif]-->
    {/block}

        {block name="right"}
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">用户管理</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            用户信息
                        </div>
                        <form action="{:url('admin/user/editac')}" enctype="multipart/form-data" method="post">
                        <table width="100%" class="general-table info-table" align="center">
                            <tbody>
                                <tr>
                                    <!-- 隐藏用户id -->
                                    <input type="hidden" name='id' value="{$data.id}">
                                    <td class="llbel">昵称：</td>
                                    <td><input type="text" name='username' value="{$data.username}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">账号：</td>
                                    <td><input type="text" name='user_number' value="{$data.user_number}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">头像：</td>
                                    <td>
                                        <img src="__static__/upload/{$data.img_src}">
                                        <input type="file" name="img" size="35" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="llbel">手机号：</td>
                                    <td><input type="text" name='phone' value="{$data.phone}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">邮箱：</td>
                                    <td><input type="text" name='user_number' value="{$data.user_number}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">性别：</td>
                                    <td>
                                    <input type="radio" name="sex" {if condition="($data.sex == 1)"} checked {/if} value="1"> 女
                                    <input type="radio" name="sex" {if condition="($data.sex == 0)"} checked {/if}  value="0"> 男
                                    </td>
                                </tr>
                                <tr>
                                    <td class="llbel">兴趣爱好：</td>
                                    <td><input type="text" name='hobby' value="{$data.hobby}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">出生年月：</td>
                                    <td  id='time-td' style="position:relative">
                                        <input type="text" name="birthday" class="form-control1 form-date" size="16" value="{:date("Y-m-d",$data.birth)}">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="llbel">星座：</td>
                                    <td><input type="text" name='constellation' value="{$data.constellation}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">现居地：</td>
                                    <td><input type="text" name='living_place' value="{$data.living_place}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">故乡：</td>
                                    <td><input type="text" name='hometown' value="{$data.hometown}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">职业：</td>
                                    <td><input type="text" name='job' value="{$data.job}"></td>
                                </tr>
                                <tr>
                                    <td class="llbel">婚姻状况：</td>
                                    <td>
                                    <input type="radio" name="is_marry" {if condition="($data.is_marry == 1)"} checked {/if}  value="1"> 已婚
                                    <input type="radio" name="is_marry" {if condition="($data.is_marry == 0)"} checked {/if} value="0"> 单身
                                    </td>
                                </tr>
                                <!-- <tr>
                                    <td class="llbel">注册时间：</td>
                                    <td><input name="addtime" type="text" readonly="readonly" value="{:date('Y-m-d',$data.addtime)}" size="20"></td>
                                </tr> -->
                                <tr>
                                    <td align="center">
                                        <input type="submit" value="修改" class="sub">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        </form>
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
        </div>
        {/block}

    {block name="js"}
    <!-- jQuery -->
    {load href="__static__/admin/vendor/jquery/jquery.min.js" /}

    <!-- Bootstrap Core JavaScript -->
    {load href="__static__/admin/vendor/bootstrap/js/bootstrap.min.js" /}

    <!-- Metis Menu Plugin JavaScript -->
    {load href="__static__/admin/vendor/metisMenu/metisMenu.min.js" /}

    <!-- DataTables JavaScript -->
    {load href="__static__/admin/vendor/datatables/js/jquery.dataTables.min.js" /}
    {load href="__static__/admin/vendor/datatables-plugins/dataTables.bootstrap.min.js" /}
    {load href="__static__/admin/vendor/datatables-responsive/dataTables.responsive.js" /}

    <!-- Custom Theme JavaScript -->
    {load href="__static__/admin/dist/js/sb-admin-2.js" /}

    <!-- datetime -->
    <!-- {load href="__static__/admin/js/time.js" /} -->
    {load href="__static__/admin/js/datetime.js" /}

    <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    // 仅选择日期
    $(".form-date").datetimepicker(
    {
        language:  "zh-CN",
        weekStart: 1,
        todayBtn:  1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        minView: 2,
        forceParse: 0,
        format: "yyyy-mm-dd"
    });
    </script>
    {/block}